package com.tangyuan.model.activity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: ticket_type_record
 * @Author: jeecg-boot
 * @Date:   2024-03-20
 * @Version: V1.0
 */
@Data
@TableName("ticket_type_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ticket_type_record对象", description="ticket_type_record")
public class TicketTypeRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
	/**活动id*/
    @ApiModelProperty(value = "活动id")
    private Long activityId;
	/**票种名称*/
    @ApiModelProperty(value = "票种名称")
    private String name;
	/**票种id*/
    @ApiModelProperty(value = "票种id")
    private Long voteId;
	/**票价*/
    @ApiModelProperty(value = "票价")
    private BigDecimal voteMoney;
	/**票种数量*/
    @ApiModelProperty(value = "票种数量")
    private Integer voteNum;
    /**剩余票数*/
    @ApiModelProperty(value = "剩余票数")
    private Integer remainderNum;
    /**起购数量*/
    @ApiModelProperty(value = "起购数量")
    private Integer startQuotaNum;
	/**限购数量*/
    @ApiModelProperty(value = "限购数量")
    private Integer quotaNum;
    /**
     * 开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;
	/**结束时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date voteTime;
	/**票种说明*/
    @ApiModelProperty(value = "票种说明")
    private String voteShow;
	/**新增时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "新增时间")
    private Date createTime;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**删除标识*/
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private Integer isDeleted;
}
